package edu.gyc.hishiro.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;

@Data
public class RoleUser {

    private Integer id;
    private String description;
    private String role;
    private String  username;

    @TableField(exist = false)
    private Set<String > nameSet=new HashSet<>();

    @TableField(exist = false)
    private String names;

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoleUser roleUser = (RoleUser) o;
        return Objects.equals(id, roleUser.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
